<template>
  <div class="body">
    <div class="ss">
      <div class="zz" v-for="(item, index) of data.results" :key="index">
        <div class="img">
          <img :src="`index/${item.pimg}`" />
        </div>
        <p>{{ item.title }}</p>
        <h5>新品上市</h5>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      data: "",
    };
  },
  mounted() {
    this.axios.get("http://localhost:3000/product").then((res) => {
      console.log(res);
      this.data = res.data;
    });
  },
};
</script>

<style  src="../assets/css/ss.css">
</style>